package com.lg.atp.controller;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.OutputStream;

import javax.servlet.http.HttpServletResponse;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.ResponseBuilder;

import org.apache.commons.codec.digest.DigestUtils;
import org.apache.commons.io.FileUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import com.lg.atp.entity.TblAppInfo;
import com.lg.atp.entity.TblAttachment;
import com.lg.atp.service.IAppInfoService;
import com.lg.atp.service.IAttachmentService;

@RestController
@RequestMapping("script")
public class ScriptController {
	
	private Log log = LogFactory.getLog(ScriptController.class);
	
	private @Value("${targetFilePath}") String targetFilePath;
	
	@Autowired
	private IAppInfoService iAppInfoService;
	@Autowired
	private IAttachmentService IAttachmentService;

	//D:\\filedata\\app\\zhejiangdaily.apk
	@GetMapping("toDemonstration")
	public ModelAndView toDemonstration() {
		ModelAndView model = new ModelAndView();
		model.setViewName("demonstration");	
		return model;
	}
	@GetMapping("getappById")
	public void getappById() {
		
	}

}
